Global Index
HTML5 JS API Index > Web Audio Tutorials & Specs

AudioBufferSourceNode

Extends AudioNode.

This interface represents an audio source from an in-memory audio asset in an AudioBuffer. It is useful for playing short audio assets which require a high degree of scheduling flexibility (can playback in rhythmically perfect ways). The start() method is used to schedule when sound playback will happen.

Properties
AudioBuffer?buffer
booleanloop
doubleloopEnd
doubleloopStart
EventHandleronended
AudioParamplaybackRate
Operations
voidstart(optional double when, optional double offset, optional double duration)
voidstop(optional double when)